package com.lorianknights.rpg.data.asset.base
{
	
	public class ItemBase extends Object
	{
		
		private var _name:String;
		private var _id:int;
		private var _desc:String;
		private var _level:int;
		private var _linkage:String;
		private var _filename:String;
		private var _cost:int;
		private var _type:String;
		private var _dex:int;
		private var _aur:int;
		private var _for:int;
		private var _cha:int;
		private var _wis:int;
		private var _equipped:int;
		
		public function ItemBase(itemBObj:Object)
		{
			
			super();
			
				if ("strName" in itemBObj)
				{
					
					this._name = String(itemBObj.strName);
					
				}
				
				if ("intID" in itemBObj)
				{
					
					this._id = int(itemBObj.intID);
					
				}
				
				if ("strDesc" in itemBObj)
				{
					
					this._desc = String(itemBObj.strDesc);
					
				}
				
				if ("intLevel" in itemBObj)
				{
					
					this._level = int(itemBObj.intLevel);
					
				}
				
				if ("strLinkage" in itemBObj)
				{
					
					this._linkage = String(itemBObj.strLinkage);
					
				}
				
				if ("intCost" in itemBObj)
				{
					
					this._cost = int(itmeBObj.intCost);
					
				}
				
				if ("sFile" in itemBObj)
				{
					
					this._filename = String(itemBObj.sFile);
					
				}
				
				if ("strType" in itemBObj)
				{
					
					this._type = String(itemBObj.strType);
					
				}
				
				if ("intDEX" in itemBObj)
				{
					
					this._dex = int(itemBObj.intDEX);
					
				}
				
				if ("intCHA" in itemBObj)
				{
					
					this._cha = int(itemBObj.intCHA);
					
				}
				
				if ("intAUR" in itemBObj)
				{
					
					this._aur = int(itemBObj.intAUR);
					
				}
				
				if ("intWIS" in itemBObj)
				{
					
					this._wis = int(itemBObj.intWIS);
					
				}
				
				if ("bEquip" in itemBObj)
				{
					
					this._equipped = int(itemBObj.bEquip);
					
				}
		}
		
		public function get strName():String
		{
			
			return this._name;
			
		}
		
		public function get intID():int
		{
			
			return this._id;
			
		}
		
		public function get strDesc():String
		{
			
			return this._desc;
			
		}
		
		public function get intLevel():int
		{
			
			return this._level;
			
		}
		
		public function get intCost():int
		{
			
			return this._cost;
			
		}
		
		public function get intDEX():int
		{
			
			return this._dex;
			
		}
		
		public function get intAUR():int
		{
			
			return this._aur;
			
		}
		
		public function get intWIS():int
		{
			
			return this._wis;
			
		}
		
		public function get intCHA():int
		{
			
			return this._cha;
			
		}
		
		public function get strLinkage():String
		{
			
			return this._linkage;
			
		}
		
		public function get sFile():String
		{
			
			return this._filename;
			
		}
		
		public function get strType():String
		{
			
			return this._type;
			
		}
	}
}